{extends file="findExtends:modules/calendarhub/templates/include/eventslist.tpl"}

{block name="navheader"}
  <div class="nonfocal sidenavHeader">
    {$sideNav}
    <h2>{$fullTitle}</h2>
  </div>
<div style="margin: 10px">
  <div style="float:left; line-height: 34px;">以 </div>
  <div class="actionbuttons" style="margin: 15px;">
    <div class="actionbutton" onclick='redirectTo("day", { "type" : "{$type}", "calendar" : "{$calendar}"});' style="{if $pagename == 'day'}font-weight: bold;{/if} cursor: pointer;"><a>日</a></div>
  </div>
  <div class="actionbuttons" style="margin: 15px;">
    <div class="actionbutton" onclick='redirectTo("week", { "year" : "{$dateArr["year"]}", "month" : "{$dateArr["month"]}", "day" : "{$dateArr["day"]}", "type" : "{$type}", "calendar" : "{$calendar}"});' style="{if $pagename == 'week'}font-weight: bold;{/if} cursor: pointer;"><a>週</a></div>
  </div>
  <div class="actionbuttons" style="margin: 15px;">
    <div class="actionbutton" onclick='redirectTo("month", { "year" : "{$dateArr["year"]}", "month" : "{$dateArr["month"]}",
        "type" : "{$type}", "calendar" : "{$calendar}"});' style="{if $pagename == 'month'}font-weight: bold;{/if} cursor: pointer;"><a>月</a></div>
  </div>
  <div class="actionbuttons" style="margin: 15px;">
    <div class="actionbutton" onclick='redirectTo("year",
        { "type" : "{$type}", "calendar" : "{$calendar}"});' style="{if $pagename == 'year'}font-weight: bold;{/if} cursor: pointer;"><a>年</a></div>
  </div>
  <div class="actionbuttons" style="margin: 15px;">
    <div class="actionbutton" onclick='redirectTo("list",
        { "type" : "{$type}", "calendar" : "{$calendar}"});' style="{if $pagename == 'list'}font-weight: bold;{/if} cursor: pointer;"><a>列表</a></div>
  </div>
  <div style="line-height: 34px;"> 顯示</div>
  <div style="clear: both;"></div>
</div>
{/block}
